package cn.iocoder.yudao.module.bpm.controller;

import com.xueyi.common.security.utils.SecurityUtils;
import org.flowable.common.engine.impl.identity.Authentication;

public class BaseController {

    /**
     * @description     获取当前登录用户ID
     * @author          zhengchao
     * @date            Created in 2022/5/18
     */
    public Long getLoginUserId() {
        //Long userId = SecurityUtils.getUserId();
        Long userId = Long.parseLong(Authentication.getAuthenticatedUserId());
        return userId;
    }

}
